<template>
  <div style="width:100%;height:100%;background: #ffff00;">
    <div>分类</div>
  <div>{{msg}}</div>
  </div>

</template>

<script>
import { ref} from "vue";
import {apiGoodsList} from "../../api/api";
export default {
  name: "List",
  setup() {
    //保存用户数据的变量
    const msg = ref("");
    //从接口获取用户信息
    const info = async () => {
      apiGoodsList({
      }).then(res => {
        //成功
        if (res.code == 0) {
          //Object.assign(state, res.data);
          msg.value = res.data.msg;
        }
      }).catch((error) => {
        console.log(error)
      })
    };
    info();
    return {
      info,
      msg,
    };
  }
}

</script>

<style scoped>

</style>
